<?
require_once("../config/dbconn.php");require_once("../config/powercls.php");
$sqlqx="select departid from {$db_prefix}admin888 where id='".$_SESSION['sys_adminid']."'";
$rsqx=$db->get_one($sqlqx);
$depart='';
if ($rsqx['departid']){
	$sqlpow="select flname from {$db_prefix}departs where id='".$rsqx['departid']."'";
	$rspow=$db->get_one($sqlpow);
	$depart=$rspow['flname'];
}
?>
<html>
<head>
<meta http-equiv=Content-Type content=text/html;charset=utf-8>
<title> 管理页面</title>
<script language=JavaScript>
function logout(){
	if (confirm("您确定要退出吗？"))
	top.location = "outsys.php";
	return false;
}
</script>
<script language=JavaScript1.2>
function showsubmenu(sid) {
	var whichEl = eval("submenu" + sid);
	var menuTitle = eval("menuTitle" + sid);
	if (whichEl.style.display == "none"){
		eval("submenu" + sid + ".style.display=\"\";");
	}else{
		eval("submenu" + sid + ".style.display=\"none\";");
	}
}

function showsubmenu(sid) {
	var whichEl = eval("submenu" + sid);
	var menuTitle = eval("menuTitle" + sid);
	if (whichEl.style.display == "none"){
		eval("submenu" + sid + ".style.display=\"\";");
	}else{
		eval("submenu" + sid + ".style.display=\"none\";");
	}
}
</script>
<base target="main">
<link href="images/skin.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<table width="100%" height="64" border="0" cellpadding="0" cellspacing="0" bgcolor="#eef2fb">
  <tr>
    <td width="61%" height="64"><img src="images/logo.gif"></td>
    <td width="39%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="51%" height="38" class="admin_txt" style="color:#ff0000">【<?=$depart?>】：<b><?=$_SESSION['sys_admin']?></b> 您好   [<a href="right.php" target="main" style="color:#ff0000">欢迎页</a>]</td>
        <td width="48%" align="left"><a href="#" target="_self" onClick="logout();"><img src="images/out.gif" alt="安全退出" width="46" height="20" border="0"></a></td>
        <td width="1%">&nbsp;</td>
      </tr>
      <tr>
        <td height="19" colspan="3">&nbsp;</td>
        </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
